package com.view.houseon;

import com.presentacion.houseon.R;
import com.presentacion.houseon.R.layout;
import com.presentacion.houseon.R.menu;

import android.os.Bundle;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.text.Html;
import android.text.method.LinkMovementMethod;
import android.text.util.Linkify;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;
import android.widget.TextView;

public class InformacionHouseONActivity extends Activity {
	
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_informacion_house_on);
		
		
		
		
		 TextView txtanio=(TextView)findViewById(R.id.txtVersion);
		 txtanio.setText(Html.fromHtml(getString(R.string.web)));
		    Linkify.addLinks(txtanio, Linkify.ALL);
		    txtanio.setMovementMethod(LinkMovementMethod.getInstance());
		    
		    TextView txtWeb=(TextView)findViewById(R.id.txt_pagina_oficial);
		    txtWeb.setText(Html.fromHtml(getString(R.string.web_oficial)));
		    Linkify.addLinks(txtWeb, Linkify.ALL);
		    txtWeb.setMovementMethod(LinkMovementMethod.getInstance());
		    
		    TextView txtManual=(TextView)findViewById(R.id.txt_manual_usuario);
		    txtManual.setText(Html.fromHtml(getString(R.string.manual_movil)));
		    Linkify.addLinks(txtWeb, Linkify.ALL);
		    txtManual.setMovementMethod(LinkMovementMethod.getInstance());
		    
	}
	
	

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.informacion_house_on, menu);
		return true;
	}

}
